<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@include file="/WEB-INF/jsp/common/common.jsp"%>
<html>
<head>
    <script type="text/javascript" src="./resource/jquery-1.5.1.js"></script>
</head>
<body>
<h2>Hello World!</h2>
<form action="${mvcpath}user/login" method="post">
    用户名:<input type="text" id="userName" name = "userName"/><br/>
    密码:&nbsp;<input type="password" id="password" name="password"/><br/>
    <input type="submit" value="登陆">
</form>
<a href="${mvcpath}excel/test">导出Excel</a>
<input type="button" id="button1" value="test">
</body>
<script>
    $("button1").click(function(){
        top.jzts();
        var newdiag = new top.Dialog();
        newdiag.Drag=true;
        newdiag.Title ="添加设备";
        newdiag.URL = ;
        newdiag.Width = 1000;
        newdiag.Height = 600;
        newdiag.CancelEvent = function(){ //关闭事件
            var flag = newdiag.innerFrame.contentWindow.document.getElementById('clickOK').value;
            if("true" == flag){
                var id = newdiag.innerFrame.contentWindow.document.getElementById('equipmentuuid').value;
                var name = newdiag.innerFrame.contentWindow.document.getElementById('equipmentname').value;
                var equId = newdiag.innerFrame.contentWindow.document.getElementById('equipmentid').value;
                $("#SUOSHUSHEBEI").val(id);
                $("#SUOSHUSHEBEINAME").val(name);
                $("#EQUIPMENT_ID").val(equId);
            }
            newdiag.close();
        };
        newdiag.show();
    });
</script>
</html>
